#include "Sphere.h"
#include <math.h>
#include <d3d9.h>
#include <d3dx9.h>

Sphere::Sphere(LPDIRECT3DDEVICE9 device, D3DXVECTOR3 pPosition, float pRadius)
{
	this->radius = pRadius;
	this->SetPos(&pPosition);
	this->SetSphere(device, pRadius, 10, 10, NULL);
	mPhys = new Physics();
	mPhys->SetModel(this);
	mPhys->SetInteria(2.0f/5.0f);
	mPhys->SetRadius(pRadius);
	mPhys->SetMass(0.1f);
	mPhys->SetType(Physics::Sphere);
}